'Name:			OwnEngine.vb													##
'Author:		schachmat														##
'Last modified:	3.9.2007														##
'Status:																		##
'	functionality:			05%													##
'	documentation intern:	00%													##
'	documentation extern:	00%													##
'Comments:																		##
'TODO: ComparExtend																##
'																				##
'																				##
'																				##
'																				##
'#################################################################################


'The MIT License

'Copyright (c) 2007 Markus Teich

'Permission is hereby granted, free of charge, to any person obtaining a copy
'of this software and associated documentation files (the "Software"), to deal
'in the Software without restriction, including without limitation the rights
'to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
'copies of the Software, and to permit persons to whom the Software is
'furnished to do so, subject to the following conditions:

'The above copyright notice and this permission notice shall be included in
'all copies or substantial portions of the Software.

'THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
'IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
'FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
'AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
'LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
'OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
'THE SOFTWARE.


Imports OE
Imports OE.Core

'UNDONE: Casting-Operatorn (Widening) erstellen (allgemein)

'Public Enum oeError
'    oeOK = 0
'    oeERROR = 1
'End Enum

Public Class OwnEngine
    Public Shared Sub oeInit(Optional ByVal AppTitle As String = "OwnEngine")
        oeLog.InitLog(AppTitle)
        oeRandom.Init()
        oeLog.LogInfo("Direct3D wird initialisiert...")
        SlimDX.Direct3D9.Direct3D.Initialize()
        oeLog.LogOk("Direct3D erfolgreich initialisiert")
        'Dim blub As New oeTime()
    End Sub

    Public Shared Sub oeExit()
        oeLog.ExitLog()

    End Sub


    Public Shared Sub SetUp()
        Dim SettingsDlg As New OE.oeSettings
        SettingsDlg.ShowDialog()

    End Sub
End Class
